<template>
	<el-main style="background-color: #fff;height: 100%;">
		<div v-html="rawHtml" class="ql-editor"></div>
	</el-main>

			
</template>

<script>
import useTabs from "@/utils/useTabs";

export default {
	name: '通知公告',
	props:{
		model: {type:Object,default:false}
	},
	data() {
		return {
			
            rawHtml:"",
		}
	},
	watch:{
		
	},
	async created() {
		let id= localStorage.getItem("noticeid");
		console.log(id);
		
		let rsp = await this.$API.system.notice.findById.post({id: id});
		if (rsp.code === 2000) {
			let notice = rsp.data;
			console.log(notice);
			this.rawHtml=notice.noticeContent;
			useTabs.setTitle(notice.noticeName);
		}
	},
	mounted() {
		
	},
	methods: {
	}
}
</script>

<style scoped>



</style>
